package com.book.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserDao extends BaseMapper<User> {

    @Update("update user set password=#{password} where id=#{id} and del_flag=0")
    int EditPassword(@Param("id") String id,@Param("password") String password);
}
